package com.sjd.farm.domain.dto.order;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * WxFarmOrderCreate
 *
 * @author seer
 * @version 1.0
 * @date 2022/1/28 14:43
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
public class WxFarmOrderCreateRequestDTO {

    /**
     * 商品ID
     */
    @NotNull(message = "goodsId is null")
    private Long goodsId;

    /**
     * 数量
     */
    @NotNull(message = "goodsQuantity is null")
    private BigDecimal goodsQuantity;
}